<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html" charset="utf-8" />
	<title>客户主界面</title>
	<link rel="stylesheet" href="Resource/layui/css/layui.css">
	<style type="text/css">
		td{
			width:165px;
			height:40px;
		}

		td:hover{background: #27ecec;}

		button:hover{
			background: #00F7DE;
		}

		th{
			width:165px;
			height:40px;
		}

		*{
			margin:0;
			padding:0;
		}

		.left-nav{
			width:200px;
			height:719px;
			float:left;
		}
		#ul{/* 导航栏宽高 */
			width:100%;
			height:100%;
		}

		.right-body {
			position: absolute;
			top: 0px;
			left: 200px;
		}

		#page{
			background: #009f95;
		}
	</style>
</head>
<body>
	<div class="right-body">
		<table border="1" style="margin-top:40px;margin-left:50px;">
			<tr align="center">
				<th>客户编号</th>
				<th>客户名称</th>
				<th>客户密码</th>
				<th>客户状态</th>
				<th>操作</th>
			</tr>

			<c:forEach items="${sessionScope.list}" var="client">
					<tr align="center">
						<td>${client.cid}</td>
						<td>${client.caccount}</td>
						<td>${client.cpassword}</td>
						<td>${client.state}</td>
						<td><a href="./updateJSP?cid=${client.cid}"><i class="layui-icon">&#xe642;修改</i></a> / <a href="./delete?cid=${client.cid}"><i class="layui-icon">&#xe640;删除</i></a></td>
					</tr>
			</c:forEach>
		</table>
	</div>
</body>
</html>